<template>
  <div class="side-pic">
    <div class="pic">
      <img :src="img_url" alt="" />
    </div>
    <div class="side-count">
      <span class="pic">
        <img src="@/assets/head/7X.png" alt="" />
      </span>
      <span class="count">{{ count }}</span>
    </div>
    <div class="side-title">{{ title }}</div>
  </div>
</template>

<script>
export default {
  props: {
    img_url: String,
    count: Number,
    title: String
  }
}
</script>

<style lang="less" scoped>
.side-pic {
  height: 200px;
  padding: 10px 0;
  position: relative;

  .pic {
    height: 100%;

    img {
      height: 100%;
      width: 100%;
    }
  }
  .side-count,
  .side-title {
    position: absolute;
    left: 10px;
    color: #fff;

    &.side-title {
      bottom: 20px;
      font-weight: 700;
      font-size: 18px;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &.side-count {
      top: 20px;
      display: flex;

      .pic {
        height: 12px;
        height: 12px;

        .img {
          height: 100%;
          width: 100%;
        }
      }
    }

    .count {
      margin-left: 5px;
      font-size: 12px;
      font-weight: 700;
    }
  }
}
</style>
